<template>
  <!-- 根组件 -->
  <div id="dynamic">
    <div class="dynamic-header">
      <van-tabbar route :fixed="false">
        <van-tabbar-item replace to="/home/dynamic/attention"
          >关注</van-tabbar-item
        >
        <van-tabbar-item replace to="/home/dynamic/recommend"
          >推荐</van-tabbar-item
        >
        <van-tabbar-item replace to="/home/dynamic/forum">论坛</van-tabbar-item>
      </van-tabbar>
      <!-- 右侧 -->
      <div class="dynamic-header-right">
        <p>
          <router-link to="/search"
            ><img src="../../assets/images/sousuo.png" alt=""
          /></router-link>
        </p>
        <Thead />
      </div>
    </div>
    <div class="fu">
      <router-view></router-view>
    </div>
  </div>
</template>

<script>
import Thead from "../../components/public/Tab-head";
export default {
  components: {
    Thead,
  },
};
</script>
<style lang="less" scoped>
#dynamic {
  z-index: -3;
  .dynamic-header {
    background: white;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 55px;
    display: flex;
    justify-content: space-between;
  /deep/  .van-hairline--top-bottom {
      width: 231px;
      height: 55px;
      font-size: 16px;
      &::after {
        border: none;
        .van-tabbar-item {
          width: 77px;
        }
      }

      .van-tabbar-item__text {
        font-size: 16px;
        color: #999999;
      }
      .van-tabbar-item--active {
        font-weight: 900;
        position: relative;
        &::before {
          content: "";
          display: inline-block;
          width: 26px;
          height: 3px;
          position: absolute;
          bottom: 3px;
          left: 50%;
          transform: translateX(-50%);
          background: #0adeee;
        }
        .van-tabbar-item__text {
          color: #000;
        }
      }
    }
    .dynamic-header-right {
      background: #fff;
      height: 55px;
      display: flex;
      align-items: center;
      margin-right: 17px;
      p {
        width: 55px;
        height: 100%;
        img {
          width: 100%;
          height: 100%;
        }
      }
    }
  }
}
.fu{
  position: fixed;
  top:55px;
  bottom: 57px;
  left: 0;
  right: 0;
  overflow: auto;
  z-index:-1;
}
</style>
